Can a subscripted variable can be used in a INPUT
statement?
Yes—why not? They can be used anywhere ordinary variables can.
Here is a tiny program that uses an INPUT
with a subscripted variable.
DIM RAIN(1 TO 3) ' The array will store the rainfall PRINT "Enter rainfall for day 1:" INPUT RAIN(1) PRINT "You entered:", RAIN(1) END
Here is a run of the program:
Enter rainfall for day 1: ? 4.37 You entered: 4.37
What part of the array RAIN
changed when the statement:
INPUT RAIN(1)
was executed?